package com.estore.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import org.springframework.jdbc.core.RowMapper;

import com.estore.entity.License;

public class LicenseMapper implements RowMapper<License> {

	@Override
	public License mapRow(ResultSet rs, int arg1) throws SQLException {
		License license = new License();
		license.setLicenseID(rs.getInt("licenseID"));
		license.setAgentID(rs.getInt("agentID"));
		license.setStartDate(rs.getString("startDate"));
		license.setEndDate(rs.getString("endDate"));
		license.setLicenseStatus(rs.getString("licenseStatus"));
		return license;
	}

}
